package cn.com.springsource.ioc.autowire;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("indexService")
public class IndexService {

    @Autowired
    IndexDao indexDao;

    public IndexService() {
    }

    public IndexService(IndexDao indexDao) {
        this.indexDao = indexDao;
    }

    public void setIndexDao(IndexDao indexDao) {
        this.indexDao = indexDao;
    }

    public void serviceTest(){
        indexDao.test();
    }
}
